package common;

public class User implements java.io.Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public static final int STATUS_OFFLINE = 1;
	public static final int STATUS_ONLINE = 2;
	
	private long userId;
	private String alias;
	private int status;

	public User(long id){
		this.userId = id;
	}

	public User(){
	}

	public int getStatus() {
		return status;
	}

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}
	public void setStatus(int clientStatus) {
		this.status = clientStatus;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}

	public String getAlias() {
		return alias;
	}
	
	@Override
	public String toString() {
		return alias + " ("+userId+")";
	}
}
